<%@page import="bean.FmBoardDTO"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel = 'stylesheet' href='./FmBoard/Board.css'/>
<script src='./FmBoard/Board.js'></script>
</head>
<body>


<jsp:useBean id="vo" class="bean.FmBoardVo" scope="page"></jsp:useBean>
<jsp:setProperty property="*" name="vo"/>

<%
FmBoardDTO dto = new FmBoardDTO();
dto.setVo(vo);
boolean flag=false;
System.out.println("델결과 deep" + vo.getDeep());
System.out.println("델결과 rno" + vo.getRno());



if(vo.getDeep().split("-").length==1){
	flag=dto.delete();
}else{
	flag=dto.repdelete();
}	
if(flag){
%>
<script>location.href='index.jsp?inc=./FmBoard/bList.jsp'</script>
<%}else{ out.print("삭제중 오류 발생");}%>
<p/>

<form name='hiddenFrm' method='post'>
	<input type='hidden' name='nowPage' value='<%=vo.getNowPage() %>'/>
	<input type='hidden' name='kindFind' value='<%=vo.getKindFind()%>'/>
	<input type='hidden' name='locateFind' value='<%=vo.getLocateFind()%>'/>
	<input type='hidden' name='genderFind' value='<%=vo.getGenderFind()%>'/>
	<input type='hidden' name='find' value='<%=vo.getFind()%>'/>
	<input type='button' value='목록으로' id='btnList'/>
</form>

<script>bDeleteInit();</script>



</body>
</html>